<?xml version="1.0" encoding="UTF-8"?>
<f:view xmlns:f="http://java.sun.com/jsf/core"
        xmlns:h="http://java.sun.com/jsf/html"
        xmlns:ui="http://java.sun.com/jsf/facelets"
        xmlns:a4j="http://richfaces.org/a4j"
        xmlns:c="http://java.sun.com/jstl/core"
        xmlns:rich="http://richfaces.org/rich"
        contentType="text/html">
    <html>
    <head>
        <title>
            <ui:insert name="pageTitle"/>
        </title>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
        <meta name="Description" content="#{utilBackingBean.metaDescription}"/>
        <meta name="Keywords" content="#{utilBackingBean.metaKeywords}"/>
        <link rel="shortcut icon" href="#{request.contextPath}/images/favicon.ico"/>
        <ui:insert name="headScriptLib"/>
        <link rel="stylesheet" type="text/css" href="#{request.contextPath}/css/gouse.css"/>
        <link rel="stylesheet" href="#{request.contextPath}/css/lightbox.css" type="text/css" media="screen"/>
    </head>

    <body>
    <script type="text/javascript" src="#{request.contextPath}/js/dragdrop.js"></script>
    <table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr>
            <td width="50%"/>
            <td valign="top" width="800px">
                <table width="100%" cellspacing="0" cellpadding="0">
                    <tr>
                        <td/>
                        <td valign="top">
                            <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                <tr>
                                    <td>
                                        <table>
                                            <tr>
                                                <td>
                                                    <h:graphicImage id="logo" value="/images/common/logo.jpg"/>
                                                </td>
                                                <td valign="bottom" align="right">
                                                    <table width="390px">
                                                        <tr>
                                                            <td>
                                                                <h:outputText id="randomQuip"
                                                                              value="#{utilBackingBean.randomQuip.htmlInfo}"
                                                                              rendered="#{utilBackingBean.quipsEnabled}"
                                                                              escape="false"/>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td valign="bottom" align="right">
                                                                <ui:insert name="localeMenu">
                                                                    <ui:include
                                                                            src="/WEB-INF/template/locale_menu.xhtml"/>
                                                                </ui:insert>
                                                            </td>
                                                        </tr>
                                                    </table>
                                                </td>
                                            </tr>
                                        </table>
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <ui:insert name="pagePicture"/>
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <ui:insert name="navigationMenu">
                                            <ui:include src="/WEB-INF/template/navigation_menu.xhtml"/>
                                        </ui:insert>
                                    </td>
                                </tr>
                                <tr>
                                    <td width="100%" align="left" valign="top">
                                        <h1>
                                            <ui:insert name="sectionTitle"/>
                                        </h1>
                                    </td>
                                </tr>
                                <tr>
                                    <td width="100%" align="left" valign="top">
                                        <f:verbatim>&#0160;</f:verbatim>
                                    </td>
                                </tr>
                                <!--<tr class="breadcrumbBackground">
                                    <td>
                                        <span>
                                            <ui:repeat value="#{conversationScope.trail}" var="bcrumb">
                                                <h:outputText value="#{bcrumb.label}">
                                                    <h:outputText value=" > " rendered="#{bcrumb.index != 0}" />
                                                </h:outputText>
                                            </ui:repeat>
                                        </span>
                                    </td>
                                </tr>-->
                                <tr>
                                    <td align="left" valign="top">
                                        <a4j:outputPanel id="errorMessages" ajaxRendered="true">
                                            <h:messages showSummary="true"/>
                                        </a4j:outputPanel>
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <f:subview id="main">
                                            <ui:insert name="centerContent">[[The content of the page]]</ui:insert>
                                        </f:subview>
                                    </td>
                                </tr>
                            </table>
                        </td>
                        <td/>
                    </tr>
                </table>
            </td>
            <td width="50%">
            </td>
        </tr>
    </table>
    <div id="admin_menu" style="position:absolute;left: 100px;top: 100px;">
        <ui:insert name="adminMenu">
            <ui:include src="/WEB-INF/template/admin_menu.xhtml"/>
        </ui:insert>
    </div>
    <script type="text/javascript">
        SET_DHTML("admin_menu");
    </script>
    </body>
    </html>
</f:view>
